//
//  WSPlayListTableViewCell.m
//  GroupFourFM
//
//  Created by 王鑫 on 15/12/23.
//  Copyright © 2015年 GroupFour. All rights reserved.
//

#import "WSPlayListTableViewCell.h"

@implementation WSPlayListTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubViews];
    }
    return self;
}

- (void)createSubViews
{
    self.newsPic = [[UIImageView alloc] init ];
    self.newsPic.backgroundColor = CLEAR;
    self.newsPic.layer.masksToBounds = YES;
    self.newsPic.layer.cornerRadius = 12.5;
    [self.contentView addSubview:self.newsPic];
    [self.newsPic mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.mas_equalTo(@10);
        make.top.mas_equalTo(@20);
        make.bottom.mas_equalTo(@-20);
        make.width.equalTo(self.contentView.mas_height).offset(-40);
    }];
    
    self.newsTitle = [[WSBaseTitleLabel alloc] init];
    self.newsTitle.font = [UIFont systemFontOfSize:20 weight:0.1];
    [self.contentView addSubview:self.newsTitle];
    [self.newsTitle mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.equalTo(self.newsPic.mas_right).offset(15);
        make.top.bottom.equalTo(self.newsPic);
        make.right.mas_equalTo(@-40);
    }];
}

@end
